package com.eyedog.video.entity;

/**
 * created by jw200 at 2019/5/5 20:31
 **/
public class Node {
    public Node next;
    public int val;

    public Node(int val) {
        this.val = val;
    }

    public Node(int val, Node next) {
        this.val = val;
        this.next = next;
    }

    @Override
    public String toString() {
        return "val:" + val + ";" + (next == null ? "null" : "next:" + next.val);
    }
}
